package com.hnkywl.sts.entity.xsgl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.base.Sjzdz;
import com.hnkywl.sts.entity.cggl.Cgd;
import com.hnkywl.sts.entity.cggl.Cgdmx;
import com.hnkywl.sts.entity.htgl.Cght;
import com.hnkywl.sts.entity.htgl.Xsht;
import com.hnkywl.sts.entity.jhgl.Bgjhmx;
import com.hnkywl.sts.entity.organ.Ck;
import com.hnkywl.sts.entity.organ.Gsjg;
import com.hnkywl.sts.entity.sys.Gg;
import com.hnkywl.sts.entity.sys.Yg;
import org.hibernate.annotations.*;

import javax.persistence.Entity;
import javax.persistence.*;
import javax.persistence.Table;
import java.util.Date;
import java.util.List;

/**
 * 说明：   实际单价
 * 包:        com.hnkywl.sts.entity.xsgl
 * 类描述:    卡号
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name = "T_BIZ_SJDJ")
@Where(clause = "deleted!='1'")
public class Sjdj extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqSjdj", allocationSize = 1, sequenceName = "SEQ_BIZ_SJDJ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqSjdj")
    private Long id;

    /**
     * 采购合同合同
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "cght_id")
    private Cght cght;



    /**
     * 销售系统子项号
     */
    private String xsdh;

    /**
     * 具体物资
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "JTWZ_ID")
    private Gg jtwz;


    /**
     * 车皮号
     */
    private String carno;

    /**
     * 放货日期
     */
    private String fhrq;

    /**
     * 总重量
     */
    private Double zzl;

    /**
     * 实际单价
     */
    private Double sjdj;


    /**
     * 状态
     */
    private Integer zt;

    /**
     * 审核人
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "shr_id")
    private Yg shr;

    /**
     * 审核日期
     */
    private Date shrq;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Cght getCght() {
        return cght;
    }

    public void setCght(Cght cght) {
        this.cght = cght;
    }

    public String getXsdh() {
        return xsdh;
    }

    public void setXsdh(String xsdh) {
        this.xsdh = xsdh;
    }

    public Gg getJtwz() {
        return jtwz;
    }

    public void setJtwz(Gg jtwz) {
        this.jtwz = jtwz;
    }

    public String getCarno() {
        return carno;
    }

    public void setCarno(String carno) {
        this.carno = carno;
    }

    public String getFhrq() {
        return fhrq;
    }

    public void setFhrq(String fhrq) {
        this.fhrq = fhrq;
    }

    public Double getZzl() {
        return zzl;
    }

    public void setZzl(Double zzl) {
        this.zzl = zzl;
    }

    public Double getSjdj() {
        return sjdj;
    }

    public void setSjdj(Double sjdj) {
        this.sjdj = sjdj;
    }

    public Integer getZt() {
        return zt;
    }

    public void setZt(Integer zt) {
        this.zt = zt;
    }

    public Yg getShr() {
        return shr;
    }

    public void setShr(Yg shr) {
        this.shr = shr;
    }

    public Date getShrq() {
        return shrq;
    }

    public void setShrq(Date shrq) {
        this.shrq = shrq;
    }
}
